package com.mobile.challenge.ui.report.unit.admin.adapter

import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.mobile.challenge.ui.report.model.PeriodType
import com.mobile.challenge.ui.report.adapter.IRefresh
import com.mobile.challenge.ui.report.unit.admin.daily.AdminUnitDailyReportFragment
import java.util.*

/**
 * @Author Touge
 * @Date 2020/9/16 21:22
 * @Description
 */
class AdminOneFragmentAdapter(fragment: Fragment) : FragmentStateAdapter(fragment),
        IRefresh {
    override fun getItemCount(): Int {
        return 1
    }

    override fun createFragment(position: Int): Fragment {
        return AdminUnitDailyReportFragment.newInstance()
    }

    override fun refresh(calendar: Calendar, period: Int) {

    }
}